package com.tarena.mybatis.study.demo01.test.model;

import java.util.List;

public class User {
    private String name;
    private Integer id;

    private List<Role> roles;
    private List<Permission> permissions;

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override public String toString() {
        return "User{" +
            "name='" + name + '\'' +
            ", id=" + id +
            ", roles=" + roles +
            ", permissions=" + permissions +
            '}';
    }
}
